			
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DDF.Entity;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;
		
namespace ARR.Entities
{
	[DataContract]
	[Serializable]	
	public partial class TempArticleSale : EntityBase
	{
		[DataMember]
		private TempArticleSaleRow row;
		
		public TempArticleSale(TempArticleSaleRow row)
		{
			this.row = row;
		}
		
		public TempArticleSale()
		{
			this.row = new TempArticleSaleRow();
		}
		
		[DataMember]
		public int Id
		{
			get { return row.Id; }
			set { row.Id = value; }
		}

		[DataMember]
		public int? StoreId
		{
			get { return row.StoreId; }
			set { row.StoreId = value; }
		}

		[DataMember]
		public int? ArticleId
		{
			get { return row.ArticleId; }
			set { row.ArticleId = value; }
		}

		[DataMember]
		public DateTime Date
		{
			get { return row.Date; }
			set { row.Date = value; }
		}

		[DataMember]
		public int Units
		{
			get { return row.Units; }
			set { row.Units = value; }
		}

		[DataMember]
		public decimal Sales
		{
			get { return row.Sales; }
			set { row.Sales = value; }
		}

		[DataMember]
		public decimal GM
		{
			get { return row.GM; }
			set { row.GM = value; }
		}

		[DataMember]
		public decimal GrossSales
		{
			get { return row.GrossSales; }
			set { row.GrossSales = value; }
		}

		[DataMember]
		public decimal? Price
		{
			get { return row.Price; }
			set { row.Price = value; }
		}

		[DataMember]
		public bool? Confirmed
		{
			get { return row.Confirmed; }
			set { row.Confirmed = value; }
		}

		[DataMember]
		public decimal? NetMargin
		{
			get { return row.NetMargin; }
			set { row.NetMargin = value; }
		}

		[DataMember]
		public int? PIDiffUnits
		{
			get { return row.PIDiffUnits; }
			set { row.PIDiffUnits = value; }
		}

		[DataMember]
		public decimal? PIDiff
		{
			get { return row.PIDiff; }
			set { row.PIDiff = value; }
		}

		[DataMember]
		public int? ChargeOffsUnits
		{
			get { return row.ChargeOffsUnits; }
			set { row.ChargeOffsUnits = value; }
		}

		[DataMember]
		public decimal? ChargeOffs
		{
			get { return row.ChargeOffs; }
			set { row.ChargeOffs = value; }
		}

		[DataMember]
		public decimal? Rebates
		{
			get { return row.Rebates; }
			set { row.Rebates = value; }
		}

		[DataMember]
		public string BonusBuyNumber
		{
			get { return row.BonusBuyNumber; }
			set { row.BonusBuyNumber = value; }
		}

		[DataMember]
		public decimal? Costs
		{
			get { return row.Costs; }
			set { row.Costs = value; }
		}

		[DataMember]
		public decimal? CostsWithVat
		{
			get { return row.CostsWithVat; }
			set { row.CostsWithVat = value; }
		}

		[DataMember]
		public int? RangeReviewId
		{
			get { return row.RangeReviewId; }
			set { row.RangeReviewId = value; }
		}

		[DataMember]
		public int? CategoryId
		{
			get { return row.CategoryId; }
			set { row.CategoryId = value; }
		}

		[DataMember]
		public string ArticleCode
		{
			get { return row.ArticleCode; }
			set { row.ArticleCode = value; }
		}

		[DataMember]
		public string ArticleName
		{
			get { return row.ArticleName; }
			set { row.ArticleName = value; }
		}

		[DataMember]
		public string EAN
		{
			get { return row.EAN; }
			set { row.EAN = value; }
		}

		[DataMember]
		public string UOM
		{
			get { return row.UOM; }
			set { row.UOM = value; }
		}

		[DataMember]
		public string Brand
		{
			get { return row.Brand; }
			set { row.Brand = value; }
		}

		[DataMember]
		public string Manufacturer
		{
			get { return row.Manufacturer; }
			set { row.Manufacturer = value; }
		}

		[DataMember]
		public string NotFoundCategory
		{
			get { return row.NotFoundCategory; }
			set { row.NotFoundCategory = value; }
		}

		[DataMember]
		public decimal? Size
		{
			get { return row.Size; }
			set { row.Size = value; }
		}

		[DataMember]
		public decimal? Width
		{
			get { return row.Width; }
			set { row.Width = value; }
		}

		[DataMember]
		public decimal? Height
		{
			get { return row.Height; }
			set { row.Height = value; }
		}

		[DataMember]
		public decimal? Facings
		{
			get { return row.Facings; }
			set { row.Facings = value; }
		}

		[DataMember]
		public string Attribute1
		{
			get { return row.Attribute1; }
			set { row.Attribute1 = value; }
		}

		[DataMember]
		public string Attribute2
		{
			get { return row.Attribute2; }
			set { row.Attribute2 = value; }
		}

		[DataMember]
		public string Attribute3
		{
			get { return row.Attribute3; }
			set { row.Attribute3 = value; }
		}

		[DataMember]
		public string Attribute4
		{
			get { return row.Attribute4; }
			set { row.Attribute4 = value; }
		}

		[DataMember]
		public string Attribute5
		{
			get { return row.Attribute5; }
			set { row.Attribute5 = value; }
		}

		[DataMember]
		public decimal? TaxRate
		{
			get { return row.TaxRate; }
			set { row.TaxRate = value; }
		}

		[DataMember]
		public int? CountryId
		{
			get { return row.CountryId; }
			set { row.CountryId = value; }
		}

		[DataMember]
		public string StoreCode
		{
			get { return row.StoreCode; }
			set { row.StoreCode = value; }
		}

		[DataMember]
		public string StoreName
		{
			get { return row.StoreName; }
			set { row.StoreName = value; }
		}

		[DataMember]
		public string Region
		{
			get { return row.Region; }
			set { row.Region = value; }
		}

		[DataMember]
		public string City
		{
			get { return row.City; }
			set { row.City = value; }
		}

		[DataMember]
		public string Address
		{
			get { return row.Address; }
			set { row.Address = value; }
		}

		[DataMember]
		public string Phone
		{
			get { return row.Phone; }
			set { row.Phone = value; }
		}

		[DataMember]
		public string Fax
		{
			get { return row.Fax; }
			set { row.Fax = value; }
		}

		[DataMember]
		public string Format
		{
			get { return row.Format; }
			set { row.Format = value; }
		}

		
		public TempArticleSaleRow GetRow()
        {
            return row;
        }
		
	} 
} 
